import Cookies from 'js-cookie'

const TokenKey = 'token'
// const testToken = 'eyJhbGciOiJSUzUxMiJ9.eyJ1dWlkIjoiYTMyYWFjZDQtZjgxOS00Mjc1LWFiNzQtNDJkOGQ5YWViYzU1In0.JsNHbqtkAyH9ihKdgAGx6HDaBA2R9FPuqZc1OYZ6F90r3aQo9EFusYaMQAL7sbgwMkFmhcaQKKSUlVs7jVawrzTDDQe92UvtkKN5EbRCnrddk3E1AqkNiOJaUahIgzpe2mnNfRh50HlKzaLhich2OSZcJTBM_1XzgLGAr3l42T4'
export const getToken = (): string => {
  return Cookies.get(TokenKey) || ''
}

export const setToken = (token: string): string => {
  return Cookies.set(TokenKey, token) || '';
}

export const removeToken = (): void => {
  return Cookies.remove(TokenKey)
}
